package edu.sctu.practice.class02.lvchang.textSort;
import java.util.Arrays;
import java.util.Scanner;

/**
 * Created by Administrator on 2015/9/18.
 */
public class Textone0 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入10个整数：");
        int[] a = new int [10];
        for (int i = 0; i < 10; i++)
            a[i] = input.nextInt();

        Arrays.sort(a);
        System.out.print("\nAfter sort:");
        for (int i = 0; i < a.length; i++) {
            System.out.print(a[i] + " ");
    }
        System.out.print("\n");
}
    }

